package com.ruoyi.cpsp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class Employee implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    @TableField(value = "idCard")
    private String idCard;

    private String jobNumber;

    @TableField(value = "is_45_days")
    private Integer is45Days;

    private Integer isDirectProducer;

    private String positionType;

    private String departmentId;

    private String teamGroupId;

    @TableField(value = "state")
    private Integer state;

    private String toDepartmentId;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getIdCard() {
        return idCard;
    }

    public String getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(String jobNumber) {
        this.jobNumber = jobNumber;
    }

    public Integer getIsDirectProducer() {
        return isDirectProducer;
    }

    public void setIsDirectProducer(Integer directProducer) {
        isDirectProducer = directProducer;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public Integer getIs45Days() {
        return is45Days;
    }

    public void setIs45Days(Integer is45Days) {
        this.is45Days = is45Days;
    }

    public String getPositionType() {
        return positionType;
    }

    public void setPositionType(String positionType) {
        this.positionType = positionType == null ? null : positionType.trim();
    }

    public Integer getDirectProducer()
    {
        return isDirectProducer;
    }

    public void setDirectProducer(Integer directProducer)
    {
        isDirectProducer = directProducer;
    }

    public String getDepartmentId()
    {
        return departmentId;
    }

    public void setDepartmentId(String departmentId)
    {
        this.departmentId = departmentId;
    }

    public String getTeamGroupId()
    {
        return teamGroupId;
    }

    public void setTeamGroupId(String teamGroupId)
    {
        this.teamGroupId = teamGroupId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getToDepartmentId() {
        return toDepartmentId;
    }

    public void setToDepartmentId(String toDepartmentId) {
        this.toDepartmentId = toDepartmentId;
    }

    public Employee() {
    }

    /**
     * new
     * @param name
     * @param idCard
     * @param jobNumber
     * @param is45Days
     * @param positionType
     * @param departmentId
     */
    public Employee(String name, String idCard, String jobNumber, Integer is45Days, String positionType, String departmentId)
    {
        this.name = name;
        this.idCard = idCard;
        this.jobNumber = jobNumber;
        this.is45Days = is45Days;
        this.positionType = positionType;
        this.departmentId = departmentId;
    }

    public Employee(Integer id, String name, String idCard, String jobNumber, Integer is45Days, Integer isDirectProducer, String positionType, String departmentId, String teamGroupId)
    {
        this.id = id;
        this.name = name;
        this.idCard = idCard;
        this.jobNumber = jobNumber;
        this.is45Days = is45Days;
        this.isDirectProducer = isDirectProducer;
        this.positionType = positionType;
        this.departmentId = departmentId;
        this.teamGroupId = teamGroupId;
    }

    public Employee(Integer id, String name, String idCard, String jobNumber, Integer is45Days, Integer isDirectProducer, String positionType, String departmentId, String teamGroupId, Integer state, String toDepartmentId) {
        this.id = id;
        this.name = name;
        this.idCard = idCard;
        this.jobNumber = jobNumber;
        this.is45Days = is45Days;
        this.isDirectProducer = isDirectProducer;
        this.positionType = positionType;
        this.departmentId = departmentId;
        this.teamGroupId = teamGroupId;
        this.state = state;
        this.toDepartmentId = toDepartmentId;
    }

    @Override
    public String toString()
    {
        return "Employee{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idCard='" + idCard + '\'' +
                ", jobNumber='" + jobNumber + '\'' +
                ", is45Days=" + is45Days +
                ", isDirectProducer=" + isDirectProducer +
                ", positionType='" + positionType + '\'' +
                ", departmentId='" + departmentId + '\'' +
                ", teamGroupId='" + teamGroupId + '\'' +
                '}';
    }


}
